using ChikovMF.Application.Features.Tags.ListTag;
using Shouldly;

namespace ChikovMF.Tests.Tags.Queries;

public class ListTagTest : TestQueryBase
{
    [Fact]
    public async Task ListTagTest_Success()
    {
        var handler = new ListTagQueryHandler(_context, _mapper);
        var command = new ListTagQuery();

        var result = await handler.Handle(
            command,
            CancellationToken.None
        );

        result.ShouldBeOfType<ListTagModel>();
        result.Tags!.Count.ShouldBe(2);
    }
}